package com.example.zluserservice.client;

import com.example.zluserservice.common.base.PageResponse;
import com.example.zluserservice.common.base.ResponseResult;
import com.example.zluserservice.dto.request.OperationLogReqDTO;
import com.example.zluserservice.dto.response.OperationLogResDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author zhenliu（孙凌岳）
 * @Description 日志服务-日志
 * @Date 2025/6/21 10:36
 * @Version 1.0
 */
@FeignClient(name = "zl-logging-service", path = "/permission/inner/log")
public interface OperationLogFeignClient {
    @PostMapping("/page/{pageNum}/{pageSize}")
    PageResponse<OperationLogResDTO> findOperationResDTOPage(
            @RequestBody OperationLogReqDTO operationLogReqDTO,
            @PathVariable("pageNum") int pageNum,
            @PathVariable("pageSize") int pageSize);

    @DeleteMapping("/{operId}")
    ResponseResult remove(@PathVariable("operId") Long operId);
}
